<template>
  <div>
    <div>
      <h4>康复目标</h4>
      <el-row type="flex" justify="space-between">
        <el-col :span="11">
          <div>
            <el-input
              type="textarea"
              resize="none"
              :rows="2"
              placeholder="近期目标"
              v-model="pgForm.kfmb_textarea1">
            </el-input>
          </div>
        </el-col>
        <el-col :span="11">
          <div>
            <el-input
              type="textarea"
              resize="none"
              :rows="2"
              placeholder="分期"
              v-model="pgForm.kfmb_textarea2">
            </el-input>
          </div>
        </el-col>
        <el-col :span="11">
          <span>早期</span>
          <div class="grid-content">
            <el-checkbox-group v-model="pgForm.kfmb_checkList1">
              <el-checkbox label="1.减轻疼痛，缓解肿胀，防止并发症产生"></el-checkbox>
              <el-checkbox label="2.增加肩关节和腕关节和手的关节活动度训练"></el-checkbox>
              <el-checkbox label="3.增加手指肌力训练"></el-checkbox>
              <el-input v-model="pgForm.kfmb_input1" placeholder="备注"></el-input>
            </el-checkbox-group>
          </div>
        </el-col>
        <el-col :span="12">
          <span>晚期</span>
          <div class="grid-content">
            <el-checkbox-group v-model="pgForm.kfmb_checkList2">
              <el-checkbox label="1.骨折基本愈合，外固定去除后"></el-checkbox>
              <el-checkbox label="2.增加肩、肘、腕与指关节的主动运动"></el-checkbox>
              <el-checkbox label="3.增加上肢肌力训练"></el-checkbox>
              <el-checkbox label="4.增加上肢的灵活性和协调性"></el-checkbox>
              <el-input v-model="pgForm.kfmb_input2" placeholder="备注"></el-input>
            </el-checkbox-group>
          </div>
        </el-col>
        <el-col>
          <div>
            <el-input
              type="textarea"
              resize="none"
              :rows="2"
              placeholder="长期目标"
              v-model="pgForm.kfmb_textarea3">
            </el-input>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "rehabilitation_objectives",
  title: "康复目标",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      pgForm: {
        kfmb_textarea1: '',
        kfmb_textarea2: '',
        kfmb_textarea3: '',
        kfmb_checkList1: [],
        kfmb_checkList2: [],
        kfmb_input1: '',
        kfmb_input2: '',
      }
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-checkbox-group{
  padding: 10px 20px;
}
.el-checkbox{
  display: block;
  margin-bottom: 15px;
}
</style>
